﻿using Assets.Scripts.Net;
using UnityEngine;
using Assets.Scripts.UI.Panel;

namespace Assets.Scripts.Global
{
    public class Global :SingleMono<Global>
    {

        public void Awake()
        {
            XmlOperation operation = new XmlOperation(Application.streamingAssetsPath + "/App.config");       
            NetConfig.URL_HOST = "http://"+operation.Read("host", "value")+'/';
            NetConfig.URL_RESHOST = "http://" + operation.Read("reshost", "value")+'/';
            Debug.Log("NetConfig.URL_HOST:" + NetConfig.URL_HOST);   
            operation.Close();
        }                      
    }
}
